Add upload csv functionality - #218
Conversation
| } | ||
| ``` | ||
|
|
||
| #### Upload FDA `POST /{visibility}/fdas/upload` |
There was a problem hiding this comment.
Not sure if we should use a different API operation for this. Maybe we should use the current "Create FDA" operation, so the Content-Type (either application/json or multipart/form-data) which one to use.
This way we preserve the creation semantic under the same operation (as at the end the CSV upload also participates in that semantic, as an alternative way of creating FDAs).
Not sure. Either way has its on pros/cons. Let's talk about it.
| | -------------------- | -------- | -------------------------------------------------------------------- | ------------------ | | ||
| | `Fiware-Service` | | Tenant or service, using the common mechanism of the FIWARE platform | `trantor` | | ||
| | `Fiware-ServicePath` | | NGSI hierarchical service path. Stored and exact-matched on access. | `/servicePath` | | ||
| | `Content-Type` | | Must be `multipart/form-data` | multipart boundary | |
There was a problem hiding this comment.
Not sure how this relates with text/csv or application/vnd.ms-excel, etc.
Let's discuss it.
|
Given a fda (let's name it |
| "uuid": "~11.1.0", | ||
| "cron-parser": "~5.5.0" | ||
| "xlsx": "~0.18.5", | ||
| "csv-parse": "~7.0.0" |
There was a problem hiding this comment.
It seems dependencies are in alphabetical order. Maybe this line should be re-ordered?

Related Issue #57